home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-09-10 | 1.5 KB | 55 lines | [TEXT/KAHL] |
- //———————————————————————————————————————————————
- //
- // ©1991 Adobe Systems Inc.
- // written by Randy Ubillos
- //
- //———————————————————————————————————————————————
-
- //——————————————————————————————————————
- // Effect callback prototypes
-
- typedef pascal short (*FXCallBackProcPtr)(long frame, short track,
- CGrafPtr thePort,Rect theBox, Handle privateData);
-
- //——————————————————————————————————————
- // Effect Data Structure
-
- typedef struct {
- Handle specsHandle; // specification handle
- GWorldPtr source1; // source GWorld #1
- GWorldPtr source2; // source GWorld #2
- GWorldPtr destination; // Destination GWorld
- long part; // part / total = % complete
- long total;
- char previewing; // in preview mode?
- char arrowFlags; // flags for direction arrows
- char reverse; // is effect being reversed?
- char source; // are sources swapped?
- Point start; // starting point for effect
- Point end; // ending point for effect
- Point center; // the reference center point
- Handle privateData; // Editor private data handle
- FXCallBackProcPtr callBack; // callback, not valid if nil
- } EffectRecord, **EffectHandle;
-
- // Selector messages
- enum {
- esExecute = 0,
- esSetup
- };
-
- // Effect Corner Bits
- enum {
- bitTop = 0x01,
- bitRight = 0x02,
- bitBottom = 0x04,
- bitLeft = 0x08,
- bitUpperRight = 0x10,
- bitLowerRight = 0x20,
- bitLowerLeft = 0x40,
- bitUpperLeft = 0x80
- };
-
- typedef pascal short (*EffectProcPtr)(short selector, EffectHandle theData);
-
-